package org.hs.phd.odi.tracking.tracker.kernel;

public class EpanechnikovKernel extends AbstractKernel {

	public EpanechnikovKernel(){
	}
	
	@Override
	public float value(float normalizedDistanceSquared) {
		return (normalizedDistanceSquared > 1) ? 0 : 0.75F*(1 - normalizedDistanceSquared);
	}

	@Override
	public float derivative(float normalizedDistanceSquared) {
		return (normalizedDistanceSquared > 1) ? 0 : 1;
	}
	
	
}
